package lab02.test04;

/**
 * Created by lei on 2017/10/12.
 */
public class Workers {

    //属性:员工姓名、员工号码、员工基本薪水、员工薪水增长额

    char workersName;
    int workersNum;
    float workersSalary;
    float workersIncrese;

    //行为:构造方法、获取员工姓名、获取员工号码、获取员工基本薪水、计算薪水增长额及计算增长后的工资总额。

    char name() {

        return workersName;
    }

    int number() {

        return workersNum;
    }

    float salary() {

        return workersSalary;
    }

    float increse() {

        return workersIncrese;
    }

    float sum() {

        float sumSalary;

        sumSalary = workersSalary * (1 + workersIncrese);

        return sumSalary;
    }

}

